<?php
	require('config.php');
	$user_id=$_REQUEST['user_id'];
	$shopId=$_REQUEST['shopId'];
    $wb_id=0;

    $sql="select * from `".$oto."_report` where userId='{$user_id}' and `shopId`='{$shopId}'";
	$result=$db->query($sql);
	while($row=$result->fetch_assoc()){
		$suggest[]=$row;//将取得的所有数据赋值给person_info数组
	}
	if(isset($suggest))
	{
		$data[0]['pan']="1";
		$data[0]['msg']="您已经投诉过了";
		$data[0]['content']=$suggest[0]['content'];
		$data[0]['phone']=$suggest[0]['phone'];
	}
	else $data[0]['pan']="0";
	echo json_encode($data);
?>